<?php
require $this->__RAD__ . 'include/head.php';
?>
<body>

<?php
require $this->__RAD__ . 'include/header.php';
?>

<div class="join" style="background:url(<?= $this->__STATIC__ ?>/images/bg03.jpg) no-repeat center center/cover;">
    <div class="contact brand">
        <div class="wrapper">
            <div id="item1" class="contact-con04">
                <div class="tit">人才招募</div>
                <div class="picScroll-left">
                    <div class="hd">
                        <a href="javascript:;" class="next"></a>
                        <a href="javascript:;" class="prev"></a>
                    </div>
                    <div class="bd">
                        <ul class="picList">
                            <?php
                            if ($this->currentListRs) :
                                foreach ($this->currentListRs as $val) :
                                    ?>
                                    <li>
                                        <div class="pic"><img src="<?= $this->__CDN__ ?>pics/l/<?= $val->cover ?>"></div>
                                        <h3>
                                            <?= $val->title ?>
                                        </h3>
                                    </li>
                                    <?php
                                endforeach;
                            endif;
                            ?>
                        </ul>
                    </div>
                </div>
                <div class="con clearfix">
                    <ul>
                        <?php
                        if ($this->currentListRs) :
                            foreach ($this->currentListRs as $val) :
                                ?>
                                <li>
                                    <?php
                                    if ($val->duty) :
                                        $duty = explode('#@#', $val->duty);
                                        ?>
                                        <h3><span><?= $val->title ?></span>岗位职责：</h3>
                                        <p>
                                            <?php
                                            foreach ($duty as $key => $_val) :
                                                ?>
                                                <?= $key + 1 . '、' . $_val . '<br>' ?>
                                                <?php
                                            endforeach;
                                            ?>
                                        </p>
                                        <br>
                                        <?php
                                    endif;
                                    ?>
                                    <?php
                                    if ($val->requirement) :
                                        $requirement = explode('#@#', $val->requirement);
                                    ?>
                                        <h3><span><?= $val->title ?></span>任职要求：</h3>
                                        <p>
                                            <?php
                                            foreach ($requirement as $key => $_val) :
                                                ?>
                                                <?= $key + 1 . '、' . $_val . '<br>' ?>
                                                <?php
                                            endforeach;
                                            ?>
                                        </p>
                                    <?php
                                    endif;
                                    ?>
                                </li>
                                <?php
                            endforeach;
                        endif;
                        ?>
                    </ul>
                    <div class="careers-div">
                        <div class="pic"><img src="<?= $this->__STATIC__ ?>/images/careers07.jpg"></div>
                        <div class="tel-div">
                            <p style="background:url(<?= $this->__STATIC__ ?>/images/icon35.png) no-repeat left center;">人力资源联系方式</p>
                            <p style="background:url(<?= $this->__STATIC__ ?>/images/icon34.png) no-repeat left top 10px;">电话：021-32241080-836/826<br>　　　180 1746 4178</p>
                            <p style="background:url(<?= $this->__STATIC__ ?>/images/icon36.png) no-repeat left center;">邮箱：hr@ald-sh.com</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tit">
                加盟联系
            </div>
            <div class="contact-con01 clearfix" id="item2">
                <div id="dituContent"></div>
                <div class="address-con">
                    <h3>加盟联系</h3>
                    <h3>CONTACT</h3>
                    <br>
                    <p style="background:url(<?= $this->__STATIC__ ?>/images/icon20.png) no-repeat left center;">公司总机：021-32241080</p>
                    <p style="background:url(<?= $this->__STATIC__ ?>/images/icon21.png) no-repeat left center;">招商邮箱 : aladdin-zs@ald-sh.com</p>
                    <p style="background:url(<?= $this->__STATIC__ ?>/images/icon23.png) no-repeat left 3px center;">公司地址 : 上海市长宁区江苏路369号兆丰世贸大厦21A/B/I</p>
                </div>
            </div>
            <div class="contact-con02 clearfix" id="item2">
                <div class="fl">
                    <div class="tel">
                        全国免费咨询热线：<em>400- 820- 7837</em>
                    </div>
                    <div class="wenz">
                        <p>
                            欢迎给我们留言<br>
                            我们会在<b> 24小时 </b>内给您回电，对项目作出专业解答！
                        </p>
                    </div>
                    <p class="p">如有任何疑问，都可以咨询在线客服或拨打热线</p>
                </div>
                <div class="code fr">
                    <dl class="clearfix">
                        <dd>
                            <img src="<?= $this->__STATIC__ ?>/images/wxcode.jpg">
                            微信扫一扫了解详情
                        </dd>
                        <dd>
                            <img src="<?= $this->__STATIC__ ?>images/qqcode.jpg">
                            QQ扫一扫了解详情
                        </dd>
                    </dl>
                </div>
            </div>

            <div class="contact-con03 clearfix" id="item3">
                <form action="javascript:;">
                    <input type="text" placeholder="请输入您的称呼（必填）" class="fl form_name">
                    <input type="text" placeholder="请输入您的联系电话（必填）" class="fr form_mobile">
                    <textarea class="fl form_content" placeholder="请输入您要留言的内容"></textarea>
                    <div class="clearb"></div>
                    <input class="submit_form" type="submit" value="提交留言">
                </form>
            </div>
        </div>
    </div>
</div>

<?php
require $this->__RAD__ . 'include/footer.php';
?>
<?php
require $this->__RAD__ . 'include/right.php';
?>

</body>
</html>
<script type="text/javascript" src="<?= $this->__STATIC__ ?>js/common.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=8cYc0EtmCDWvEBjntjIo1Wyg"></script>
<script>
    submit();
    function submit() {
        $('.submit_form').click(function () {
            var name = $('.form_name').val();
            var mobile = $('.form_mobile').val();
            var content = $('.form_content').val();

            if (name == '') {
                alert('请输入您的称呼');
                return false;
            }
            else if (mobile == '') {
                alert('请输入您的联系电话');
                return false;
            }
            $('.submit_form').unbind('click');

            $.post('/api/addContactForm',
                {
                    'name': name,
                    'mobile': mobile,
                    'content': content,
                },
                function(data){
                    switch (data.errcode) {
                        case 0:
                            alert('提交成功');
                            window.location.reload();
                            break;
                        default :
                            alert('提交失败，请重新尝试！');
                            window.location.reload();
                            break;
                    }
                },'json');

        });
    }
</script>
<script>
    //创建和初始化地图函数：
    function initMap(){
        createMap();//创建地图
        setMapEvent();//设置地图事件
        addMapControl();//向地图添加控件
        addMarker();//向地图中添加marker
    }

    //创建地图函数：
    function createMap(){
        var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
        var point = new BMap.Point(121.438524,31.225179);//定义一个中心点坐标
        map.centerAndZoom(point,18);//设定地图的中心点和坐标并将地图显示在地图容器中
        window.map = map;//将map变量存储在全局


    }

    //地图事件设置函数：
    function setMapEvent(){
        map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
        map.enableScrollWheelZoom();//启用地图滚轮放大缩小
        map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
        map.enableKeyboard();//启用键盘上下左右键移动地图

    }
    //地图控件添加函数：
    function addMapControl(){
        //向地图中添加缩放控件
        var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
        map.addControl(ctrl_nav);
        //向地图中添加缩略图控件
        var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
        //map.addControl(ctrl_ove);
        //向地图中添加比例尺控件
        var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
        map.addControl(ctrl_sca);
        map.setMapStyle({ style: 'grayscale' });
    }

    //标注点数组
    var markerArr = [{title:"",content:"",point:"121.437999|31.225434",isOpen:0,icon:{w:24,h:24,l:0,t:0,x:0,lb:0}}
    ];
    //创建marker
    function addMarker(){
        for(var i=0;i<markerArr.length;i++){
            var json = markerArr[i];
            var p0 = json.point.split("|")[0];
            var p1 = json.point.split("|")[1];
            var point = new BMap.Point(p0,p1);
            var iconImg = createIcon(json.icon);
            var marker = new BMap.Marker(point,{icon:iconImg});
            var iw = createInfoWindow(i);
            var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});
            marker.setLabel(label);
            map.addOverlay(marker);
            label.setStyle({
                borderColor:"#808080",
                color:"#333",
                cursor:"pointer",
                display:"none"
            });

        }
    }

    //创建InfoWindow
    function createInfoWindow(i){
        var json = markerArr[i];
        var iw = new BMap.InfoWindow("<b class='iw_poi_title' style='display:none;'>" + json.title + "</b><div style='display:none;' class='iw_poi_content'>"+json.content+"</div>");
        return iw;
    }
    //创建一个Icon
    function createIcon(json){
        var icon = new BMap.Icon("/assets/static/images/add.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)});
        return icon;
    }
    initMap();//创建和初始化地图

</script>
<script>
    jQuery(".picScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",autoPlay:false,vis:6,trigger:"click"});
    $(function () {
        //选项卡
        $('.contact-con04 .bd li').click(function () {
            var _index=$(this).index();
            $(this).addClass('cur').siblings().removeClass('cur');
            $('.contact-con04 .con li').eq(_index).show().siblings().hide();
        });
        $('.contact-con04 .bd li').eq(0).trigger('click')

    })

</script>













